package com.example.sunmiv1.entity;

import java.util.ArrayList;
import java.util.List;

public class CurrencyInfo {

    /**
     * status : 1
     * msg : 獲取成功
     * data : [{"id":"36","name":"通化"},{"id":"35","name":"ceshi"},{"id":"34","name":"測試測試"},{"id":"33","name":"9999999"},{"id":"32","name":"測試添加"},{"id":"31","name":"ces"},{"id":"30","name":"測試直接添加"},{"id":"29","name":"1"},{"id":"28","name":"2"},{"id":"27","name":"中國"},{"id":"26","name":"132"},{"id":"25","name":"11"},{"id":"24","name":"杭州"},{"id":"23","name":"合肥"},{"id":"22","name":"777777"},{"id":"21","name":"666666"},{"id":"18","name":"海南"},{"id":"17","name":"哈哈哈"},{"id":"16","name":"改"},{"id":"14","name":"大涼山"},{"id":"13","name":"產地啊"},{"id":"12","name":"測試產地123456"},{"id":"11","name":"山東"},{"id":"10","name":"北京"},{"id":"9","name":"南京"},{"id":"8","name":"蘇州"},{"id":"7","name":"測試產地產地"},{"id":"6","name":"產地ABC"},{"id":"5","name":"測試產地b"},{"id":"4","name":"測試產地a"},{"id":"3","name":"測試產地3"}]
     */

    private int status;
    private String msg;
    private List<DataBean> data;
    private List<DataBean> list;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg == null ? "" : msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<DataBean> getList() {
        if (list == null) {
            return new ArrayList<>();
        }
        return list;
    }

    public void setList(List<DataBean> list) {
        this.list = list;
    }

    public List<DataBean> getData() {
        if (data == null) {
            return new ArrayList<>();
        }
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 36
         * name : 通化
         */

        private String id;
        private String name;
        private String label_name;
        private String title;
        private String type;

        public DataBean(String id, String name, String label_name, String title) {
            this.id = id;
            this.name = name;
            this.label_name = label_name;
            this.title = title;
        }

        public String getId() {
            return id == null ? "" : id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name == null ? "" : name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getLabel_name() {
            return label_name == null ? "" : label_name;
        }

        public void setLabel_name(String label_name) {
            this.label_name = label_name;
        }

        public String getTitle() {
            return title == null ? "" : title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getType() {
            return type == null ? "" : type;
        }

        public void setType(String type) {
            this.type = type;
        }
    }
}
